import select from './componentUI/ui_select.vue';
import radioGroup from './componentUI/ui_radio_group.vue';
import radio from './componentUI/ui_radio.vue';
import checkBox from './componentUI/ui_checkbox.vue';
import btn from './componentUI/ui_btn.vue';
import input from './componentUI/ui_input.vue';
import date from './componentUI/ui_date.vue';
import alert from './componentUI/ui_alert.vue';
import dialog from './componentUI/ui_dialog.vue';
import inputnum from './componentUI/ui_input_number.vue';
import paging from './componentUI/ui_paging.vue';
import cascader from './componentUI/ui_cascader.vue';
import upfile from './componentUI/ui_upfile.vue';
import grade from './componentUI/ui_grade.vue';
import form from './componentUI/ui_form.vue';
import formitem from './componentUI/ui_form_item.vue';
import carousel from './componentUI/ui_carousel.vue';
import imgshow from './componentUI/ui_imgShow.vue';

var selectList=[
	{label:'key1',value:"1"},
	{label:'key2',value:"2"},
	{label:'key3',value:"3"},
	{label:'key4',value:"4"}
];
new Vue({
	el:'#app',
	data:{
		selectData:clone(selectList),
		selectData2:clone(selectList),
		selectData3:clone(selectList),
		selectData4:clone(selectList),
		selectData5:null,
		msg:'hello world',
		isshowalert:false
	},
	components:{
		'ui-select':select,
		'ui-radio':radio,
		'ui-radio-group':radioGroup,
		'ui-checkbox':checkBox,
		'ui-btn':btn,
		'ui-input':input,
		'ui-date':date,
		'ui-alert':alert,
		'ui-dialog':dialog,
		'ui-input-num':inputnum,
		'ui-paging':paging,
		'ui-cascader':cascader,
		'ui-upfile':upfile,
		'ui-grade':grade,
		'ui-form':form,
		'ui-form-item':formitem,
		'ui-carousel':carousel,
		'ui-imgshow':imgshow
	},

	methods:{
		click(){
			//console.log(this.$refs);
		},
		change2(){
			return [
				{label:'new1',value:"1"},
				{label:'new2',value:"2"},
				{label:'new2',value:"2"},
				{label:'new2',value:"2"},
				{label:'new2',value:"2"},
				{label:'new2',value:"2"},
				{label:'new2',value:"2"},
				{label:'new2',value:"2"}
			];
		},
		submit(){
			this.$refs.forms.submit(2);
		}
	}
});